home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: presby.edu!jtbell
- From: jtbell@presby.edu (Jon Bell)
- Subject: Re: How can I include IOSTREAM.H only once?
- Message-ID: <DnDuD8.B9p@presby.edu>
- Date: Mon, 26 Feb 1996 12:22:20 GMT
- References: <4gre90$oei@service.polymtl.ca>
- Organization: Presbyterian College, Clinton, South Carolina USA
-
- [posted and e-mailed]
-
- Michael Gaudette <bluefox@info.polymtl.ca> wrote:
- >I am presently engaged in what is usually called "the learning process",
- >and I've been programming simple programs with classes. Because of this,
- >I have had to #include <iostream.h> in most of my "class.cpp" files AND
- >in my main program. This (added to conio.h and all the other standard
- >libraries) usually result in a simple program being 20000 lines long.
- >Is there any way (using Borland v4.5) to make the compiler only link
- >those files ONCE?
-
- Don't worry about it. Header files do not (usually) produce any object
- code by themselves. They simply provide information to the compiler that
- allows it to verify that you are using the library functions and classes
- properly. The actual code resides in the libraries, which are linked only
- once.
-
- --
- Jon Bell <jtbell@presby.edu> | "The Internet grows hyper-
- Dept. of Physics and Computer Science | bolically, but is usually
- Presbyterian College | described elliptically."
- Clinton, South Carolina USA | -- Dr. Internet
-